package wang.hu.bos.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import wang.hu.bos.dao.system.PermissionDao;
import wang.hu.bos.domain.system.Permission;
import wang.hu.bos.service.system.PermissionService;

@Service
@Transactional
public class PermissionServiceImpl implements PermissionService {
	@Autowired
	private PermissionDao permissionDao;

	@Override
	public List<Permission> findAll() {

		return permissionDao.findAll();
	}

	@Override
	public void save(Permission permission) {
		permissionDao.save(permission);

	}

}
